﻿/*
 * Copyright (C) 冷锋
 */
#ifndef CONNMGR_H
#define  CONNMGR_H
#include <list>
#include "defines.h"



class ConnectionMgr
{
public:
	ConnectionMgr(int iMaxConn);
	Connection*GetConnection();
	void FreeConnection( Connection*pConn );//
	int  GetFreeCount(  ){ return m_iFreeConnCount; }
private:
	Connection*	m_pConnList;
	Connection*	m_pFreeConn;
	int			m_iFreeConnCount;
	int			m_iMaxConn;
};

#endif
